package com.hp.his.charts.xml;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 使用JAXB2.0标注的待转换Java Bean.
 */
// 根节点
@XmlRootElement
public class BasicChart {

	private String caption;

	private String subcaption;
	
	private String numberPrefix;
	
	private String numberSuffix;
	
	private String xAxisName;
	
	private String yAxisName;
	
	/**
	 * Sets the configuration whether data values would be displayed along with
	 * the data plot on chart.
	 */
	private String showValues = "1";
	
	/**
	 * If you do not wish to rotate y-axis name, set this as 0. It specifically
	 * comes to use when you've special characters (UTF8) in your y-axis name
	 * that do not show up in rotated mode.
	 * */
	private String rotateYAxisName;
	
	/** Whether to show percentage values in labels of the chart. */
	private String showPercentValues;

	//设置转换为xml节点中的属性
	@XmlAttribute
	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	@XmlAttribute
	public String getSubcaption() {
		return subcaption;
	}

	public void setSubcaption(String subcaption) {
		this.subcaption = subcaption;
	}

	@XmlAttribute
	public String getNumberPrefix() {
		return numberPrefix;
	}

	public void setNumberPrefix(String numberPrefix) {
		this.numberPrefix = numberPrefix;
	}

	@XmlAttribute
	public String getNumberSuffix() {
		return numberSuffix;
	}

	public void setNumberSuffix(String numberSuffix) {
		this.numberSuffix = numberSuffix;
	}

	@XmlAttribute
	public String getxAxisName() {
		return xAxisName;
	}

	public void setxAxisName(String xAxisName) {
		this.xAxisName = xAxisName;
	}

	@XmlAttribute
	public String getyAxisName() {
		return yAxisName;
	}

	public void setyAxisName(String yAxisName) {
		this.yAxisName = yAxisName;
	}
	
	@XmlAttribute
	public String getShowValues() {
		return showValues;
	}

	public void setShowValues(String showValues) {
		this.showValues = showValues;
	}

	@XmlAttribute
	public String getRotateYAxisName() {
		return rotateYAxisName;
	}

	public void setRotateYAxisName(String rotateYAxisName) {
		this.rotateYAxisName = rotateYAxisName;
	}

	@XmlAttribute
	public String getShowPercentValues() {
		return showPercentValues;
	}

	public void setShowPercentValues(String showPercentValues) {
		this.showPercentValues = showPercentValues;
	}

}
